home *** CD-ROM | disk | FTP | other *** search
- > In the short term we need to either use -mshort-load-bytes if it works, and
- > fix the kernel if not. In the longer term we might be able to persuade gcc to
- > generate the right code automatically.
-
- Fixing the kernel is a non option for every case I think. What I've
- suggested to Russell is this for later ARM chips
-
- o Compile with gcc 2.8 without -mshort-load-bytes
- o In kernel space take exceptions on unaligned load/store (since there
- should be almost none)
- o Instrument the ones we get and write little unaligned load
- macros for the ones that show a lot (ie ether_type_trans)
-
- Fixing gcc is hard - it means fixing the __attribute(packed)) bug in the ARM so
- that it works properly and potentially adding an __attribute(unaligned)
- to the compiler.
-
- By taking alignment traps now gcc wont generate them all the time its
- realistic to make AX.25 and IPX work on the ARM
-
-